#include <stdio.h>
#include <pthread.h>
#include <curl/curl.h>
#include <unistd.h>
#include <assert.h>
#include <string>
#include <vector>
#include <stdlib.h>
#include <ncurses.h>

struct BlockInfo {
    int num; //number
    FILE *fp; ///file descriptor
    long seek;///current file position
    long end;///file block end position
    std::string url;///URL
    long length;///file length
    CURL *curl;
    pthread_t *thread;
    bool flag;
    std::vector <struct BlockInfo> *vecptr;
};


